package com.yiwei.ydd.api.model;

import com.yiwei.ydd.api.ResponseModel;
import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by xsooy-pc on 18-5-3.
 */

public class OrderDetailModel extends ResponseModel {

    /**
     * datas : {"id":25,"user_id":"25","order_no":"B2018042715454906182664","name":"9个月加油套餐","type":"2","pay_way":"钱包余额","oilcard_id":"2","money":"900.00","pay_money":"792.00","periods":"9","coupon_money":"0.00","status":"2","created_at":"1524815149","pay_date":"1524815167","card_number":"777","card_type":"中国石油","period_money":100,"periods_detail":[{"period":"1","money":"100.00","get_date":"2018-04-27"},{"period":"2","money":"100.00","get_date":"2018-06-26"},{"period":"3","money":"100.00","get_date":"2018-07-26"},{"period":"4","money":"100.00","get_date":"2018-08-25"},{"period":"5","money":"100.00","get_date":"2018-09-24"},{"period":"6","money":"100.00","get_date":"2018-10-24"},{"period":"7","money":"100.00","get_date":"2018-11-23"},{"period":"8","money":"100.00","get_date":"2018-12-23"},{"period":"9","money":"100.00","get_date":"2019-01-22"}]}
     */

    public DatasBean datas;

    public static class DatasBean {
        /**
         * id : 25
         * user_id : 25
         * order_no : B2018042715454906182664
         * name : 9个月加油套餐
         * type : 2
         * pay_way : 钱包余额
         * oilcard_id : 2
         * money : 900.00
         * pay_money : 792.00
         * periods : 9
         * coupon_money : 0.00
         * status : 2
         * created_at : 1524815149
         * pay_date : 1524815167
         * card_number : 777
         * card_type : 中国石油
         * period_money : 100
         * periods_detail : [{"period":"1","money":"100.00","get_date":"2018-04-27"},{"period":"2","money":"100.00","get_date":"2018-06-26"},{"period":"3","money":"100.00","get_date":"2018-07-26"},{"period":"4","money":"100.00","get_date":"2018-08-25"},{"period":"5","money":"100.00","get_date":"2018-09-24"},{"period":"6","money":"100.00","get_date":"2018-10-24"},{"period":"7","money":"100.00","get_date":"2018-11-23"},{"period":"8","money":"100.00","get_date":"2018-12-23"},{"period":"9","money":"100.00","get_date":"2019-01-22"}]
         */

        public String id;
        public String user_id;
        public String order_no;
        public String name;
        public String type;
        public String pay_way;
        public String oilcard_id;
        public String money;
        public String total_money;
        public String pay_money;
        public String periods;
        public String coupon_money;
        public String status;
        public String created_at;
        public String pay_date;
        public String card_number;
        public String card_type;
        public String period_money;
        public String git;
        public String git_value;
        public String valid_date;
        public String sale;
        public String sale_value;
        public List<RechargeTermDetailModel.DatasBean> periods_detail;

//        public static class PeriodsDetailBean {
//            /**
//             * period : 1
//             * money : 100.00
//             * get_date : 2018-04-27
//             */
//
//            public String period;
//            public String money;
//            public String get_date;
//        }
    }
}
